package com.dhecp.project.purchase.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.common.domain.UpdateDeleted;
import com.dhecp.project.common.domain.UpdateFlow;
import com.dhecp.project.purchase.domain.OfflinePayment;

public interface OfflinePaymentMapper extends GenericDao<OfflinePayment, String> {

    /**
     *@Description: 修改删除标志（仅需 guid 和 deleted）
     *@Param: [updateDeleted]
     *@return: int
     *@Author: hlf
     *@date: 2022-05-09 10:13
     */
    int updateDeleted(UpdateDeleted updateDeleted);

    /**
     *@Description: 修改流程状态及生效标志（仅需 guid、activeFlow、effectStock、updateTime）
     *@Param: [updateFlow]
     *@return: int
     *@Author: hlf
     *@date: 2022-05-09 10:13
     */
    int updateFlow(UpdateFlow updateFlow);


    /**
     * 查询已选择的商品数据
     * @param params
     * @return
     */
    List<OfflinePayment> querySelectList(Map<String, Object> params);


    List<OfflinePayment> findByOrderID(@Param("orderID") String orderID);
    List<OfflinePayment> findBypGuid(@Param("pGuid") String pGuid);

}
